home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Win2K Restrict Anon.xpl < prev    next >
Text File  |  2001-08-04  |  2KB  |  65 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH"="Network\Security\Server"
  5. "NAME"="Anonymous User Restrictions"
  6. "OSVERSION"="0001011"
  7. "VERSION"="1.15"
  8. "LANGUAGE"="VBScript"
  9. "WARNING"="1"
  10. "TEXT 1"="Use Default Permissions"
  11. "TEXT 2"="Do Not allow SAM listing"
  12. "TEXT 3"="Explicit Permissions Required"
  13. "DESCRIPTION 1"="Select One Item to set anonymous user restrictions." 
  14. "DESCRIPTION 2"="Check 1st Box to Use Default Permissions; allows setting trust relationship with trusting domains when restrictions exist with anonymous logons."
  15. "DESCRIPTION 3"="Check 2nd Box to not allow enumeration of SAM [Security Account Manager] accounts and names."
  16. "DESCRIPTION 4"="Check 3rd Box to set no access without explicit anonymous permissions."
  17. "DESCRIPTION 5"="See the Microsoft Knowledge Base (Article ID: Q246261) for implications of the different settings."
  18. "AUTHOR"="Ojatex@aol.com"
  19. "CONTACTURL"="http://members.aol.com/ojatex/"
  20. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  21. "COMMENT 1"="Thanks to CptSiskoX for suggested tip."
  22.  
  23. sP="HKLM\System\CurrentControlSet\Control\LSA\RestrictAnonymous" 'dwrd=0=default;1=Nopermissions;2=explicitpermissions
  24.  
  25. Sub Plugin_Initialize 
  26.   i=RegReadValue(sP)
  27.   if i=0 then SetUIElement 1,true
  28.  
  29.   if i=1 then SetUIElement 2,true
  30.  
  31.   if i=2 then SetUIElement 3,true
  32. End Sub
  33.  
  34. Sub Plugin_CheckData(ElementIndex)
  35. End Sub
  36.  
  37. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  38.  b=GetUIElement(1)
  39.  if b=true then
  40.     Call RegWriteValue(sP,0,2)
  41.  else
  42.      Disable
  43.  end if
  44.  
  45.  b=GetUIElement(2)
  46.  if b=true then
  47.     Call RegWriteValue(sP,1,2)
  48.  else
  49.     Disable
  50.  end if
  51.  
  52.  b=GetUIElement(3)
  53.  if b=true then
  54.     Call RegWriteValue(sP,2,2)
  55.  else
  56.     Disable
  57.  end if
  58.  
  59.  
  60. End Sub
  61.  
  62. Sub Plugin_Terminate 
  63. End Sub
  64.  
  65.